package com.econ.powercloud.ems.service.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.econ.powercloud.ems.dal.entity.EmsAdditionalOperationConfig;
import com.econ.powercloud.ems.dal.mapper.EmsAdditionalOperationConfigMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * @author hcx
 * @since 2023/6/28 15:50
 **/
@Repository
public class EmsYcYxStrategyConfigDAO extends ServiceImpl<EmsAdditionalOperationConfigMapper, EmsAdditionalOperationConfig> {

    public List<EmsAdditionalOperationConfig> getListByPid(List<String> pid){
        LambdaQueryWrapper<EmsAdditionalOperationConfig> lambdaQueryWrapper = Wrappers.lambdaQuery();
        lambdaQueryWrapper.in(EmsAdditionalOperationConfig::getPid,pid);
        return this.baseMapper.selectList(lambdaQueryWrapper);
    }
}
